package com.ngc.mall.core.enumeration;

import java.util.stream.Stream;

/**
 *
 * 积分任务类型
 * @author: chenxiaolin
 * @date 2023/9/13 17:37
**/
public enum IntegralTaskType {
    DAILY(1,"日常任务"),
    WELFARE(2,"福利任务");
    private Integer value;
    IntegralTaskType(int value,String description){
        this.value=value;
    }
    public Integer getValue(){
        return this.value;
    }

    public static IntegralTaskType toType(int value){
        return Stream.of(IntegralTaskType.values()).filter(c->c.value==value).findAny().orElse(null);
    }
}
